﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ERPStore.NewsLetters.Models
{
	[DataContract]
	public class SMTPSettings : ERPStore.Models.IModelIdentity
	{
		public SMTPSettings()
		{
			this.HostName = "127.0.0.1";
			this.Port = 25;
			this.Timeout = 0;
			this.DeliveryMethod = "Network";
		}
		[DataMember]
		public int Id { get; set; }
		[DataMember]
		public string Name { get; set; }
		[DataMember]
		public string HostName { get; set; }
		[DataMember]
		public int Port { get; set; }
		[DataMember]
		public int Timeout { get; set; }
		[DataMember]
		public bool UseSSL { get; set; }
		[DataMember]
		public string Login { get; set; }
		[DataMember]
		public string Password { get; set; }
		[DataMember]
		public string DKIMPrivateKey { get; set; }
		[DataMember]
		public string DKIMSelector { get; set; }
		[DataMember]
		public string DKIMDomain { get; set; }
		/// <summary>
		/// Pour les test
		/// </summary>
		[IgnoreDataMember]
		public string PickupDirectoryLocation { get; set; }
		[DataMember]
		public string DeliveryMethod { get; set; }
	}
}
